package cn.xny.txcc.feignclients;


import cn.xny.txcc.result.JSONResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;



@FeignClient(value = "service-media")
public interface MediaFeignClient {

    @GetMapping("/mediaFile/getMediaByCourseId/{id}")
    public JSONResult getMediaByCourseId(@PathVariable("id") Long id);


    @GetMapping("/mediaFile/getMediaById/{id}")
    JSONResult getMediaById(@PathVariable("id") Long id);
}